<%@page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />

<form id="pagerForm" method="post" action="find_UserFunction">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${numPerPage}" />
	<input type="hidden" name="orderField" value="${orderField}" />
	<input type="hidden" name="orderDirection" value="${orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);"
		action="find_UserFunction" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
					    <input type="hidden" name="functionNum" value="hxlsysad0006">
			                                用户编号：
			            <input type="text" name="userId" id="userId" value="${userId}"/>
					</td>
					<td>
						功能名称：
						<input type="text" name="functionName" id="functionName" value="${functionName}" />
					</td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">
									查看
								</button>
							</div>
						</div>
					</li>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button id="reset10">
									重置
								</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li>
				<a class="add" href="beforeDelAllUserFunction?functionNum=hxlsysad0017" target="dialog"
					mask="true" maxable=false minable=false height="150" width="450" resizable=false rel="beforeDelAllUserFunction"><span>全部解权</span> </a>
			</li>
		</ul>
	</div>
	<table class="table" layoutH="138" targetType="navTab" asc="asc"
		desc="desc">
		<thead>
			<tr>
				<th width="150" align="center">
					用户编号
				</th>
				<th width="150" align="center">
					用户姓名
				</th>
				<th width="150" align="center">
					用户身份
				</th>
				<th width="150" align="center">
					功能编号
				</th>
				<th width="200" align="center">
					功能名称
				</th>
				<th width="30">
					解权
				</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator id="userFunction" value="userFunctionList">
				<tr target="sid_user" rel="${userFunction.id}">
					<td align="center">
						${userFunction.userInfo.userId}
					</td>
					<td align="center">
						${userFunction.userInfo.userName}
					</td>
					<td align="center">
						${userFunction.userInfo.userStatus}
					</td>
					<td align="center">
						${userFunction.sysFunction.functionNum}
					</td>
					<td align="center">
						${userFunction.sysFunction.functionName}
					</td>
					<td>
						<a target="ajaxTodo"
							href="del_UserFunction_dwz?id=${userFunction.id}&functionNum=hxlsysad0017" class="btnDel" title="确定要对${userFunction.userInfo.userId}解权${userFunction.sysFunction.functionName}吗？"></a>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value})">
				<option <s:if test="numPerPage==1">selected="selected"</s:if>
					value="1">
					1
				</option>
				<option <s:if test="numPerPage==5">selected="selected"</s:if>
					value="5">
					5
				</option>
				<option <s:if test="numPerPage==10">selected="selected"</s:if>
					value="10">
					10
				</option>
				<option <s:if test="numPerPage==15">selected="selected"</s:if>
					value="15">
					15
				</option>
				<option <s:if test="numPerPage==20">selected="selected"</s:if>
					value="20">
					20
				</option>
			</select>
			<span>条，共${totalCount}条</span>
		</div>

		<div class="pagination" targetType="${targetType}"
			totalCount="${totalCount}" numPerPage="${numPerPage}"
			pageNumShown="10" currentPage="${pageNum}">
		</div>

	</div>
</div>

<script type="text/javascript">

$(function($) {
	$("#reset10").click(function() {
		$('#userId').attr('value', "");
		$('#functionName').attr('value', "");
	});
});
</script>